local extension = Package:new("jin_ld_heg")
extension.extensionName = "new_heg"
extension.game_modes_whitelist = { 'mul_heg_mode' }

local H = require "packages/new_heg/util"
local U = require "packages/utility/utility"

Fk:loadTranslationTable{
  ["jin_ld_heg"] = "受命于天DIY",
--   ["of_heg"] = "线下",
}

local duyu = General(extension, "ld__n_duyu", "jinz", 4)
duyu:addCompanions("ld__n_yanghu")
local shujian = fk.CreateTriggerSkill{
  name = "ld__n_shujian",
}
local xiulv = fk.CreateActiveSkill{
  name = "ld__n_xiulv",
}
local pozhu = fk.CreateActiveSkill{
  name = "ld__n_pozhu",
}
duyu:addSkill(shujian)
duyu:addSkill(xiulv)
duyu:addSkill(pozhu)
Fk:loadTranslationTable{
  ["ld__n_duyu"] = "隐藏武将1", --杜预
  ["#ld__n_duyu"] = "", --文成武德
  ["designer:ld__n_duyu"] = "",
  ["illustrator:ld__n_duyu"] = "",

  ["ld__n_shujian"] = "技能1",
  [":ld__n_shujian"] = "当你于回合内首次使用一种类别的牌后，你可以令一名角色摸一张牌，然后若你本回合发动此技能的次数：小于3，其弃置一张牌；为3，你暗置一张武将牌。",
  ["ld__n_xiulv"] = "技能2",
  [":ld__n_xiulv"] = "主将技，此武将牌上单独的阴阳鱼个数-1；结束阶段，你可以视为使用一张【以逸待劳】。其他角色因弃置而失去牌后，你可以明置一张武将牌并获得其中每种类别的牌各一张。",
  ["ld__n_pozhu"] = "技能3",
  [":ld__n_pozhu"] = "副将技，若你本回合明置过武将牌，你使用【杀】无次数限制。",

  ["~ld__n_duyu"] = "",
}

local yanghu = General(extension, "ld__n_yanghu", "jinz", 4)
yanghu:addCompanions("ld__n_duyu")
local zhaode = fk.CreateTriggerSkill{
  name = "ld__n_zhaode",
}
local qingke = fk.CreateTriggerSkill{
  name = "ld__n_qingke",
}
local chonge = fk.CreateTriggerSkill{
  name = "ld__n_chonge",
}
yanghu:addSkill(zhaode)
yanghu:addSkill(qingke)
yanghu:addSkill(chonge)
Fk:loadTranslationTable{
  ["ld__n_yanghu"] = "隐藏武将2", --羊祜
  ["#ld__n_yanghu"] = "", --静水沧笙
  ["designer:ld__n_yanghu"] = "",
  ["illustrator:ld__n_yanghu"] = "",

  ["ld__n_zhaode"] = "技能1",
  [":ld__n_zhaode"] = "当你对其他角色造成伤害后，你可以展示任意张黑色手牌，然后其可以获得其中任意张牌并令你选择一项：1.你暗置一张武将牌；2.你将手牌摸至体力上限，然后此技能本回合失效。",
  ["ld__n_qingke"] = "技能2",
  [":ld__n_qingke"] = "副将技，此武将牌上单独的阴阳鱼个数-1；当你于回合内使用【杀】或黑色普通锦囊牌指定唯一目标后，你可以明置一张武将牌并令此牌额外结算X次（X为目标角色的暗置武将牌数）。",
  ["ld__n_chonge"] = "技能3",
  [":ld__n_chonge"] = "主将技，阵法技，与你处于同一队列的角色使用的【杀】不能被明置武将牌数不等于其的角色响应。",

  ["~ld__n_yanghu"] = "",
}

local zhangle = General(extension, "ld__n_zhangle", "jinz", 4)
local guoyi = fk.CreateViewAsSkill{
  name = "ld__n_guoyi",
}
zhangle:addSkill(guoyi)
Fk:loadTranslationTable{
  ["ld__n_zhangle"] = "隐藏武将3", --张虎乐綝
  ["#ld__n_zhangle"] = "", --骁烈遗风
  ["designer:ld__n_zhangle"] = "",
  ["illustrator:ld__n_zhangle"] = "",

  ["ld__n_zhaode"] = "技能1",
  [":ld__n_zhaode"] = "出牌阶段限一次，你可以弃置任意张基本牌，令至多等量名势力各不相同或未确定势力的其他角色各选择一项：1.弃置一张装备牌；2.你获得其一张手牌。若如此做，若这两项此次均被选择过，你可以对你选择的其中一名角色造成1点伤害。",

  ["~ld__n_zhangle"] = "",
}

local wenyang = General(extension, "ld__n_wenyang", "jinz", 4)
local pimi = fk.CreateTriggerSkill{
  name = "ld__n_pimi",
}
local qingtian = fk.CreateTriggerSkill{
  name = "ld__n_qingtian",
}
wenyang:addSkill(pimi)
wenyang:addSkill(qingtian)
Fk:loadTranslationTable{
  ["ld__n_wenyang"] = "隐藏武将4", --文鸯
  ["#ld__n_wenyang"] = "", --万人之雄
  ["designer:ld__n_wenyang"] = "",
  ["illustrator:ld__n_wenyang"] = "",
  
  ["ld__n_pimi"] = "技能1",
  [":ld__n_pimi"] = "出牌阶段开始时，你可以令你此阶段使用牌不能被抵消，若如此做：1.其他角色于此阶段内成为你使用牌的目标时，其可以弃置两张与此牌颜色相同的牌，取消之；2.此回合结束时，若你此回合未造成过伤害，你弃置所有手牌。",
  ["ld__n_qingtian"] = "技能2",
  [":ld__n_qingtian"] = "每回合限一次，当你造成伤害时，你可以令此伤害+1，然后若存在与你势力相同或未确定势力的其他角色，你移除此武将牌。",

  ["~ld__n_wenyang"] = "",
}

local xiahouhui = General(extension, "ld__n_xiahouhui", "jinz", 3, 3, General.Female)
xiahouhui:addCompanions("ld__n_simashi")
local shidu = fk.CreateActiveSkill{
  name = "ld__n_shidu",
}
local yishi = fk.CreateActiveSkill{
  name = "ld__n_yishi",
}
xiahouhui:addSkill(shidu)
xiahouhui:addSkill(yishi)
Fk:loadTranslationTable{
  ["ld__n_xiahouhui"] = "隐藏武将5", --夏侯徽
  ["#ld__n_xiahouhui"] = "", --修容雅识
  ["designer:ld__n_xiahouhui"] = "",
  ["illustrator:ld__n_xiahouhui"] = "",
  
  ["ld__n_shidu"] = "技能1",
  [":ld__n_shidu"] = "每回合限一次，与你势力相同的角色使用基本牌或普通锦囊牌指定目标时，你可以为此牌额外指定一个目标或取消此牌的一个目标，此牌结算结束后你失去1点体力或弃置一个区域内的所有牌。",
  ["ld__n_yishi"] = "技能2",
  [":ld__n_yishi"] = "一名角色明置武将牌后，若其与你势力相同且其武将牌均明置，你可以令你或其回复1点体力。",

  ["~ld__n_xiahouhui"] = "",
}

local zhanghua = General(extension, "ld__n_zhanghua", "jinz", 3)
zhanghua.hidden = true
local jinnengA = fk.CreateTriggerSkill{
  name = "ld__n_jinnengA",
}
local jinengB = fk.CreateTriggerSkill{
  name = "ld__n_jinengB",
}
zhanghua:addSkill(jinnengA)
zhanghua:addSkill(jinengB)
Fk:loadTranslationTable{
  ["ld__n_zhanghua"] = "隐藏武将6", --张华
  ["#ld__n_zhanghua"] = "",--清骨博志
  ["designer:ld__n_zhanghua"] = "",
  ["illustrator:ld__n_zhanghua"] = "",
  
  ["ld__n_jinnengA"] = "技能1",
  [":ld__n_jinnengA"] = "",
  ["ld__n_jinengB"] = "技能2",
  [":ld__n_jinengB"] = "",

  ["~ld__n_zhanghua"] = "",
}

local simayan = General(extension, "ld__n_simayan", "jinz", 3)
simayan:addCompanions("ld__n_zhanghua")
simayan.hidden = true
local ruifa = fk.CreateTriggerSkill{
  name = "ld__n_ruifa",
}
local fengjiang = fk.CreateTriggerSkill{
  name = "ld__n_fengjiang",
}
simayan:addSkill(ruifa)
simayan:addSkill(fengjiang)
Fk:loadTranslationTable{
  ["ld__n_simayan"] = "", --司马炎
  ["#ld__n_simayan"] = "",
  ["designer:ld__n_simayan"] = "",
  ["illustrator:ld__n_simayan"] = "",
  
  ["ld__n_ruifa"] = "技能1",
  [":ld__n_ruifa"] = "",
  ["ld__n_fengjiang"] = "技能2",
  [":ld__n_fengjiang"] = "",

  ["~ld__n_simayan"] = "",
}


local yangjun = General(extension, "ld__n_yangjun", "jinz", 4)
local fuzhuan = fk.CreateTriggerSkill{
  name = "ld__n_fuzhuan",
}
local shechao = fk.CreateTriggerSkill{
  name = "ld__n_shechao",
}
yangjun:addSkill(fuzhuan)
yangjun:addSkill(shechao)
Fk:loadTranslationTable{
  ["ld__n_yangjun"] = "", --杨骏
  ["#ld__n_yangjun"] = "", --阶缘佞宠
  ["designer:ld__n_yangjun"] = "",
  ["illustrator:ld__n_yangjun"] = "",
  
  ["ld__n_fuzhuan"] = "技能1",
  [":ld__n_fuzhuan"] = "锁定技，当你明置此武将牌后，你获得场上或弃牌堆中的【玉玺】；若你为大势力角色，小势力角色不能响应你使用的牌且体力值小于你的角色强制执行你发起的“军令”。",
  ["ld__n_shechao"] = "技能2",
  [":ld__n_shechao"] = "其他角色的回合结束时，若其本回合未对其以外的角色使用过牌，你可以对其发起“军令”，若其不执行，你从弃牌堆中获得一张【挟天子以令诸侯】。",

  ["~ld__n_yangjun"] = "",
}



return extension
